package com.panshi.api.api;

import com.panshi.api.bean.AnswerAuditHDBean;
import com.panshi.api.util.PageSizeVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author XiaoWangYa
 * @version 1.0
 * @date 2020/8/10 0010 上午 10:44
 */
@FeignClient("XiaoWangYo")
@Api("回答未审核对外接口")
public interface AnswerAuditHDPort {

    @PostMapping("/addAnswerAuditHDInfo")
    @ResponseBody
    @ApiModelProperty("新增回答审核数据")
    void addAnswerAuditHDInfo (@RequestBody AnswerAuditHDBean answerAuditHDBean);

    @PostMapping("/deleteAnswerAuditHDInfo/{id}")
    @ResponseBody
    @ApiModelProperty("删除回答审核数据")
    void deleteAnswerAuditHDInfo (@PathVariable int id);

    @PostMapping("queryAssignAuditHDQuestionAnswerInfo")
    @ResponseBody
    @ApiModelProperty("查询指定问答下未审核回答 and 指定用户回答未审核数据")
    PageSizeVO queryAssignAuditHDQuestionAnswerInfo (@RequestBody PageSizeVO pageSizeHDBean);

    @PostMapping("/updateAnswerAuditHDInfo/{id}")
    @ResponseBody
    @ApiModelProperty("修改回答审核")
    void updateAnswerAuditHDInfo (@RequestBody AnswerAuditHDBean answerAuditHDBean);
}
